package kotlin


// 陪伴对象
class Person8 {

    companion object {
        fun create(): Person8 = Person8()
    }
}

fun run8() {
    var p = Person8.create()
    println("p = $p")
}